package com.xxzuibang.day4;
import java.util.Scanner;
public class Test {
    public static void main(String[] args) {
        Test1();
        Test2();
    }
    private static void Test2() {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入i1的值：");
        int i1 = sc.nextInt();
        System.out.println("请输入i2的值：");
        int i2 = sc.nextInt();
        int sum = i1 + i2;
        if (sum % 3 == 0 && sum % 5 == 0) {
            System.out.println(sum + "能被3又能被5整除！");
        } else {
            System.out.println(sum + "不能被3和5整除！");
        }
    }
    private static void Test1() {
        double d1 = 15.2;
        double d2 = 12.7;
        if (d1 > 10.0 && d2 < 20.0) {
            System.out.println(d1 + d2);
        }
    }


}
